<!DOCTYPE html>
<html lang="en">
<head>
    <link href="/custom.css" rel="stylesheet"/>
    <meta charset="UTF-8">
    <title>登录页面</title>

</head>
<body>

<br>

<div>
    <form method="post" action="/checkLogin">
        账户名<input type="text" name="username" value="">
        密码<input type="text" name="password" value="">
        <input type="submit" value="登录">
    </form>
</div>
</body>

<script src="/jquery-1.8.0.js" charset="utf-8"></script>

<script>
    $(function () {

        var check = false;
        $("#checkAll").click(function () {
            // alert("click");
            if (check == false) {
                $("input[type='checkbox']").attr("checked", true);
                check = true;
            } else {
                $("input[type='checkbox']").attr("checked", false);
                check = false;
            }
        });

        $("#deleteSelected").click(function () {
            var ids = $("input[type='checkbox']:checked").map(function () {
                var value = $(this).val();
                if (value != "on") {
                    return value;
                }
                return;
            }).get().join(",");
            alert(ids);
            window.location.href = "/url/delete?ids=" + ids;
        });
    })
</script>
</html>